import request from '@/utils/request'
const BASE_URL = '/apis'

// 查询工单列表
export function getTicketList(params) {
  return request({
    url: BASE_URL + '/api/v1/orders/workorder_backend',
    method: 'get',
    params
  })
}

// 提交工单
export function submitTicket(data) {
  return request({
    url: BASE_URL + '/api/v1/orders/workorder_backend',
    method: 'put',
    data: data
  })
}

// 下载
export function download(params) {
  return request({
    url: BASE_URL + '/api/v1/orders/download',
    method: 'get',
    params
  })
}
